home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / kirby.swf / scripts / DefineSprite_242 / frame_1 / PlaceObject2_241_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-09-24  |  318b  |  14 lines

  1. onClipEvent(enterFrame){
  2.    if(getProperty("../../", _currentframe) < 12)
  3.    {
  4.       Z += 1;
  5.       if(Z >= 15)
  6.       {
  7.          Z = 2;
  8.       }
  9.       duplicateMovieClip(this.S1,"S" add Z,16384 + Z);
  10.       this["S" add Z]._rotation = random(20) - 10;
  11.       this["S" add Z]._xscale = 100 - random(5);
  12.    }
  13. }
  14.